-- GENERATED SPELL FOR [Gnosh Brognat] --


function spell0_20768(pUnit, Event) --@Meat Slap,n/a--
pUnit:FullCastSpellOnTarget(37597,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20768', 604, 1)
end

function spell1_20768(pUnit, Event) --@Tenderize,n/a--
pUnit:FullCastSpellOnTarget(37596,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20768', 30342, 1)
end

function Sorts_20768(pUnit, Event)
local choix_sorts_20768 = math.random(0, 1)
if choix_sorts_20768 == 0 then
pUnit:RegisterEvent('spell0_20768', 1, 1)
end
if choix_sorts_20768 == 1 then
pUnit:RegisterEvent('spell1_20768', 1, 1)
end
end

function mob20768_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20768', math.random(1500, 3000), 1)
end

function mob20768_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20768_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20768_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20768, 1, 'mob20768_Action')
RegisterUnitEvent(20768, 2, 'mob20768_Leave')
RegisterUnitEvent(20768, 3, 'mob20768_Kill')
RegisterUnitEvent(20768, 4, 'mob20768_Die')
